function waveProps = loadWaveDataFromStructure(filename)
% loadWaveDataFromStructure
%
% Returns the structure used to parse the waves without making a wave...
%
% Editing:
% gs april 2005 -- privatized for mapAnalysis
% ----------------------------------------------------------------------
a = load(filename,'-mat');
nameOfFile = fieldnames(a);		% a is a struct. First field is the name of the wave
if iscell(nameOfFile)			
	nameOfFile = nameOfFile{1};
end
nameOfWave=nameOfFile;
if nargin == 2
	if ischar(name)
		nameOfWave=name;
	else
		nameOfWave=nameOfFile;
	end
end
waveProps = getfield(a, nameOfFile);	% get wave props as a struct
